-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the behavior of the yellow thread highlight after exiting a thread #51533
base: main
Are you sure you want to change the base?
Conversation
@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Thanks @ishpaul777 I will try to review the PR by EOD. |
Resolved conflicts and synced main |
@ishpaul777 We want to remove the highlight only on specific actions:
However, with the changes in this PR, the highlight is also being removed for actions like opening the context menu, emoji picker, and FAB, which is unintended. Also, the highlight should ideally only be removed when opening the RHP (after clicking Submit Expense, Split Expense, etc.) not when clicking + on the Composer. |
i clarified this here and in proposal here, i can try to refactor this to acheive what you explain but can we confirm this again from desgin team?
|
@ishpaul777 Yup. Can you please start the discussion in the issue. |
I thought about it and i think what said make sense to me, I made changes accourding to your review comment, please re-review |
@sobitneupane BUMP! |
Mereged main.@sobitneupane Friendly bump! for review |
Sorry for the delay @ishpaul777 I will try to get it done asap. |
Any updates @sobitneupane |
@ishpaul777 Let's add the test cases in QA section as well.
Should we also add a case to receive message from another user and verify message is still highlighted?
I believe we should change this test case to Click on + icon in composer and take any action. On native apps and small screen devices as soon as I click on + icon, the message is no longer highlighted.
This test doesn't pass. When I navigate back with back button, Message is still highlighted. Screen.Recording.2024-11-25.at.18.02.37.mov |
i have adressed all comments 47bf7ce, Its up for review again @sobitneupane |
I just noticed Perf test is failing, i'll check that soon... |
Any update @ishpaul777? |
I had limited available past week, will look into it tmrw |
@sobitneupane Perf test are fixed |
@ishpaul777 As seen in the video, when a thread is highlighted and we open the RHP through any action, there is no animation during the transition. This behavior differs when the thread is not highlighted. Screen.Recording.2024-12-10.at.15.20.56.mov |
@sobitneupane I could not reproduce this Screen.Recording.2024-12-10.at.3.22.08.PM.mov |
ON native, the thread remains highlighted even after taking some action like "Split expense". Screen.Recording.2024-12-10.at.15.59.41.mov |
Reproducible in web and mWeb. Steps to reproduce:
Screen.Recording.2024-12-10.at.16.16.57.mov |
@ishpaul777 Regarding #51533 (comment), could you please test it in an account with high traffic. |
#51533 (comment) and #51533 (comment) is fixed, now we will remove the navigation param for reportActionId on small screen which will scroll the user to bottom of the chat. we do this on small screen only becuase if we do this on desktop scroll and jitter is noticable on the background Screen.Recording.2024-12-10.at.4.50.56.PM.movScreen.Recording.2024-12-10.at.4.52.31.PM.mov |
i was able to reproduce this only when the a thread is highlighted in large chat, it seem to be removing the highight color is inturupting the transition animation, i have a fix to use InteractionManager.runAfterInteractions while removing highlight but that will cause a slight delay in removing highlight color, lmk if that sound good to you @sobitneupane Screen.Recording.2024-12-10.at.5.01.56.PM.mov |
I don't think this is something we want. As you can see in this comment, we decided not to go with the idea of removing reportActionID because of unwanted scrolling. |
This looks much better than the existing condition . I am okay with it. |
On small screen its unnoticable since user already took a action it does not make any sense to keep user linked on the comment, if we dont remove param and it is just acting as user is refreshed page on now landed on comment link first time that's why it show the comment linked. if you notice we did remove the highlight when user navigates but it comes again when we go back becuase reportactionid in param when we go back |
Details
Fixed Issues
$ #42165
PROPOSAL: #42165 (comment)
Tests
Offline tests
QA Steps
Same as test steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-10-27.at.2.39.12.AM.mov
Screen.Recording.2024-10-27.at.2.39.47.AM.mov
Android: mWeb Chrome
Screen.Recording.2024-10-27.at.2.54.41.AM.mov
iOS: Native
Screen.Recording.2024-10-27.at.5.39.35.AM.mov
iOS: mWeb Safari
Screen.Recording.2024-10-27.at.2.17.07.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-27.at.2.10.47.AM.mov
MacOS: Desktop
Screen.Recording.2024-10-28.at.1.34.17.AM.mov